package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.SubjectCorrectRateMapper;
import com.scuec.groupfive.service.SubjectCorrectRateService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class SubjectCorrectRateServiceImpl implements SubjectCorrectRateService {

    private final SubjectCorrectRateMapper subjectCorrectRateMapper;

    public SubjectCorrectRateServiceImpl(SubjectCorrectRateMapper subjectCorrectRateMapper) {
        this.subjectCorrectRateMapper = subjectCorrectRateMapper;
    }

    @Override
    public List<Map<String, Object>> getSubjectCorrectRates() {
        return subjectCorrectRateMapper.getSubjectCorrectRates();
    }
}